package com.edu.mapper;

import com.edu.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;


public interface UserMapper {

    @Select("SELECT * FROM user WHERE id = #{id}")
    @Results(value = { @Result(id = true, column = "id", property = "id"),
            @Result(column = "name", property = "name") })
    public User getShop(@Param("id") int id);

}